package cc.yugu.yhdw.webserver.persistence.basic;

import cc.yugu.yhdw.common.domain.basic.AlipayPayOrder;
import cc.yugu.yhdw.common.persistence.MasterMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 支付宝支付订单映射
 *
 * @Date:Created in 2018/6/28 11:34
 * @Author:
 * @Modified By: zjn 2018/6/28 11:34
 */
public interface AlipayPayOrderMapper extends MasterMapper {
    /**
    * 查询bas_alipay_pay_order表中所需信息
    *
    * @Param: [customerId, sourceType, sourceId, orderStatus]
    * @Return: cc.yugu.yhdw.common.domain.basic.AlipayPayOrder
    * @Author By: zjn 2018/6/28  11:36
    */
    public AlipayPayOrder find(@Param("customerId") Integer customerId, @Param("sourceType") Integer sourceType, @Param("sourceId") String sourceId, @Param("orderStatus") Integer orderStatus);
    /**
    * 查询表bas_alipay_pay_order中对应的行数
    *
    * @Param: [search]
    * @Return: int
    * @Author By: zjn 2018/6/28  11:37
    */
    public int findPageCount(AlipayPayOrder search);
    /**
    * 分页查询，按创建时间降序查询
    *
    * @Param: [search]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.basic.AlipayPayOrder>
    * @Author By: zjn 2018/6/28  11:38
    */
    public List<AlipayPayOrder> findPageResult(AlipayPayOrder search);
}
